import request from '@/utils/request'

// 查询挑战杯列表
export function listChallenge_cup(query) {
  return request({
    url: '/challenge_cup/challenge_cup/list',
    method: 'get',
    params: query
  })
}

// 查询挑战杯详细
export function getChallenge_cup(ccId) {
  return request({
    url: '/challenge_cup/challenge_cup/' + ccId,
    method: 'get'
  })
}

// 新增挑战杯
export function addChallenge_cup(data) {
  return request({
    url: '/challenge_cup/challenge_cup',
    method: 'post',
    data: data
  })
}

// 修改挑战杯
export function updateChallenge_cup(data) {
  return request({
    url: '/challenge_cup/challenge_cup',
    method: 'put',
    data: data
  })
}

// 删除挑战杯
export function delChallenge_cup(ccId) {
  return request({
    url: '/challenge_cup/challenge_cup/' + ccId,
    method: 'delete'
  })
}
